package org.wei.tbk;

import javax.jdo.PersistenceManager;

import org.dualr.litelog.dao.PMF;


public class TBKDao {
	
	private static TBKDao _instance = null;

	public static TBKDao getInstance() {
		if (_instance == null) {
			_instance = new TBKDao();
		}
		return _instance;
	}
	
	public String insert(ShopProp prop) {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		try {
			pm.makePersistent(prop);
		} finally {
			pm.close();
		}
		return prop.getId().toString();
	}
}
